package net.ojbk.timeSpace.test.web.handllers;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.web.servlet.ModelAndView;

public interface IClientController {

	/**
	 * 验证token,注册登录状态，session中取需要jump的地址，然后跳转
	 * 
	 * @param token
	 * @param session
	 * @return
	 */
	public ModelAndView doCilent(String token, HttpSession session);

	/**
	 * 进行注销操作，验证center真实性（ip、serviceKey）
	 * 判断类型是否位 0
	 * @param type 0表示注销
	 * @param serviceKey 
	 * @param token
	 * @return
	 */
	public Object doClient(String type, String serviceKey, String token, HttpServletRequest  request);
	
	/**
	 * 
	 * @return 返回cilentId 
	 */
	public Object doGetCilentId();

}
